package com.github.zyt.webuploader.contorller;

import ch.qos.logback.classic.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.Arrays;

@Controller
@RequestMapping("/test")
public class index {
    /**
     * 跳转到首页
     *
     * @return
     */
    @GetMapping("index")
    public String toUpload() {
        return "/upload1";
    }

    @GetMapping("testjs")
    public String testjs() {
        return "/testjs";
    }


}
